package com.example.stock.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * StockDailyData
 *
 * @author zwg
 * @date 2025/8/5 21:47
 */
@Setter
@Getter
public class StockDailyData implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    // 股票代码
    private String code;

    // 交易日期
    private LocalDate date;

    // 开盘价
    private BigDecimal openPrice;

    // 收盘价
    private BigDecimal closePrice;

    // 最高价
    private BigDecimal highPrice;

    // 最低价
    private BigDecimal lowPrice;

    // 成交量(股)
    private Long volume;

    // 成交额(元)
    private BigDecimal amount;

    // 涨跌幅(%)
    private BigDecimal changePercent;
}
